package com.foreknow.dao;

import com.foreknow.bean.Guestbook;
import com.foreknow.bean.User;

import java.sql.SQLException;
import java.util.List;

public interface GuestbookDao {
    /**
     * 添加用户信息
     */
    public boolean save(Guestbook guestbook) throws SQLException;
    /**
     * 根据name查询
     */
    public Guestbook selectid(int id)throws SQLException;
    /**
     *模糊
     */
    public List<Object> selectname(String name)throws SQLException;
    /**
     * 删除
     */
    public boolean delete(int id)throws SQLException;
    /**
     * 修改
     */
    public boolean update(Guestbook guestbook)throws SQLException;
}
